var
    js = document.getElementById('js'),
    list = document.getElementById('list');
list.appendChild(js)


var parent = document.getElementById('parent');
parent.removeChild(parent.children[0]);
